package com.example.lockscreenanimation.actor;

import android.annotation.SuppressLint;
import android.graphics.Canvas;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

import com.example.lockscreenanimation.object.Animation;
import com.example.lockscreenanimation.object.Texture;

@SuppressLint("WrongCall")
public class Fog extends BaseActor implements OnTouchListener{
	private Animation mAnimation;

	public Fog(Animation animation) {
		mAnimation = animation;
		setWidth(mAnimation.getWidthFrame());
		setHeight(mAnimation.getHeightFrame());
	}

	public void update() {

		mAnimation.update();
	}

	public void onDraw(Canvas canvas) {
		mAnimation.onDraw(canvas, getPosX(), getPosY());
	}

	public Animation getmAnimation() {
		return mAnimation;
	}

	public void setmAnimation(Animation mAnimation) {
		this.mAnimation = mAnimation;
	}

	@Override
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;
	}

}
